package cn.wolfcode.wolf2w.search.repository;

import cn.wolfcode.wolf2w.domain.Destination;
import cn.wolfcode.wolf2w.search.domain.DestinationEs;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

public interface DestinationESRepository extends ElasticsearchRepository<DestinationEs,String> {
    /**
     * 通过目的地的名称进行查询
     * @param name
     * @return
     */
    Destination queryByName(String name);
}
